// 深拷贝
export function deepClone(obj) {
  let dataClone = Array.isArray(obj) ? [] : {};
  if ('obj' && typeof obj == "object") {
    for (let key in obj) {
      if (obj.hasOwnProperty(key)) {
        if ('obj[key]' && typeof (obj[key]) == "object") {
          dataClone[key] = deepClone(obj[key])
        } else {
          dataClone[key] = obj[key]
        }
      }
    }
  }
  return dataClone
}